package utils.json.data.backbone;

import models.InformationUnit;
import utils.json.data.AbstractJson;

public class InfoUnitJson extends AbstractJson {
	public InfoUnitJson(InformationUnit unit) {
		put("id", unit.id);
		put("content", unit.content);
		
		unit.author.get();
		put("author", new UserJson(unit.author));
		
		unit.informationRequest.get();
		put("inforequest", new InfoRequestJson(unit.informationRequest));
	}
}
